package com.example.demo.dto;

import com.example.demo.entity.Comments;
import com.example.demo.entity.Goods;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class CommentWithGoodsDTO {
    @JsonProperty("cId")
    private Integer cId;
    @JsonProperty("cUserId")
    private Integer cUserId;
    @JsonProperty("cGoodsId")
    private Integer cGoodsId;
    @JsonProperty("cBio")
    private String cBio;

    @JsonProperty("userName")
    private String userName;

    // 商品信息
    @JsonProperty("productName")
    private String productName;
    @JsonProperty("productPrice")
    private BigDecimal productPrice; // 商品单价
    @JsonProperty("category")
    private String category;
    @JsonProperty("description")
    private String description;
}